package com.note.controller;

import com.alibaba.fastjson.JSON;
import com.note.entity.User;
import com.note.entity.UserNoteContent;
import com.note.service.NoteService;
import com.note.service.UserNoteContentService;
import com.note.service.UserService;
import com.note.servlet.Response;
import com.note.servlet.ResponseMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import static com.sun.xml.internal.ws.spi.db.BindingContextFactory.LOGGER;

/**
 * Created by XQ on 2017/6/16.
 */
@RestController
public class UserNoteContentController {

    @Autowired
    UserNoteContentService userNoteContentService;

    @Autowired
    UserService userService;
    @Autowired
    NoteService noteService;

    /**
     * 插入一条记录
     * @param account
     * @param title
     */
    public void addRecord(String account,String title){

//        LOGGER.info("-------->>>>>>>>>>>"+ JSON.toJSON(noteService.findNoteIdByTitle("测试标题0")));

    }
}
